import mssql
import config

def query(sql):
    db = mssql.ZgqMssql(config.get('db'))
    dataList = db.query(sql)
    db.close()
    return dataList


def test():
    list = query('select top 10 convert(nvarchar(500),name) name from staff_member')

    return {
        "code": 200,
        "msg": 'success',
        "data": list[0]
    }
    
    
print(test())